package com.naiterui.ehp.bs.recommend.service.impl;

import com.google.common.collect.Lists;
import com.naiterui.ehp.bs.recommend.bean.SysAdminInfo;
import com.naiterui.ehp.bs.recommend.repository.mysql.ISysAdminInfoRepository;
import com.naiterui.ehp.bs.recommend.service.ISysAdminInfoService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 系统管理员信息表(SysAdminInfo)表服务实现类
 *
 * @author gongbaoqiang
 * @since 2020-12-11 14:54:01
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class SysAdminInfoServiceImpl implements ISysAdminInfoService {

  private final ISysAdminInfoRepository sysAdminInfoRepository;

  @Override
  public List<SysAdminInfo> findAll() {
    List<SysAdminInfo> list = Lists.newArrayList();
    sysAdminInfoRepository.findAll().forEach(s -> {
      list.add(s);
    });
    return list;
  }
}